/*
 * @Author: andy.dell andy@long.com
 * @Date: 2024-01-07 21:37:44
 * @LastEditors: andy.dell andy@long.com
 * @LastEditTime: 2024-01-07 21:37:44
 * @FilePath: \wasm\logic\snake\src\service\refresh.go
 * @Description:
 */
package service

import "com.game.snake/msg"

// 刷新地图
// direction 0:上 1:下 2:左 3:右
func (g *Game) Refresh() msg.GameData {
	g.resetStatus().move()
	return msg.NewGameData(g.World, g.Score, g.Level, g.IsEated, g.IsDead)
}
